<?php $this->layout = 'futuretweet'; ?>
<html>
<table>
   <h1><center>FUTURE TIMELINE</center></h1>
        <div>
            <h2>
            <p>
                Editors :
            </p>
            </h2>
        <?php
        echo $this->Form->create('FutureTweet');
        foreach ($e as $field): ?>                       
            <div style="background-color:#FFFFFF">
            <?php echo $this->Html->link($field['users']['username'], array('action' => 'viewScheduledTweet', $accid, $field['users']['userID'])); ?>
            </div>
        <?php endforeach; ?>
            <h2> 
        <p>
                J.Editors :
        </p>
            </h2>  
        <?php
        foreach ($je as $field): ?>
                  
            <div style="background-color:#FFFFFF">
            <?php echo $this->Html->link($field['users']['username'], array('action' => 'viewScheduledTweet1', $accid, $field['users']['userID'])); ?>
            </div>
        <?php endforeach; ?>
 <?php foreach ($pending as $field): ?>


            <tr style="background-color:#FFFFFF">
            <td><?php echo $field['User']['username'] . ': ' . $field['FutureTweet']['tweetText'] . ' ' . $field['FutureTweet']['release_date']; ?></td>
            </tr>

 <?php endforeach; ?>
            
             <h3>
            <p>Filter Tweets:
                <?php echo $this->Html->link('All', array('action' => 'viewAll' ));?>
                <?php echo $this->Html->link('Approved', array('action' => 'viewApproved' ));?>
                <?php echo $this->Html->link('Rejected', array('action' => 'viewRejected' ));?>
                <?php echo $this->Html->link('Pending', array('action' => 'viewPending' ));?>
                
            </p>
            <hr />
            </h3>
            <h2>
            <p> Write Future tweet:
                <?php echo $this->Html->link('Post Tweet Now', array('action' => 'PostTweet')) . "&nbsp;&nbsp;&nbsp;&nbsp;"; ?>
                <?php echo $this->Html->link('Post Tweet later', array('action' => 'PostTweetLater')) . "&nbsp;&nbsp;&nbsp;&nbsp;"; ?>
               
            </p>
            <hr />
            </h2>
            
            <h2>
                <p>
                     Notifications : <?php echo $num; ?>
                     
                </p>
            <hr />
            </h2>
        

</table>
</html>